
//
//  ChoseScrollView.m
//  1243
//
//  Created by ym on 16/6/29.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "ChoseScrollView.h"
#import "LiuXSegmentView.h"

@interface ChoseScrollView ()



@end


@implementation ChoseScrollView




- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        
        LiuXSegmentView *choseView = [[LiuXSegmentView alloc]initWithFrame:frame titles:@[@"人气",@"进度",@"分类"] clickBlick:^(NSInteger index) {
            
            if (self.passIndexBlock) {
                self.passIndexBlock(index);
            }
            
            
            
        }];
        
        
        [self addSubview:choseView];
        
        
    }
    return self;
}

@end
